<template>
	<view class="custom">
		<view class="logobg" :style="{backgroundImage:`url(${indexBackgroundImage})`}">
		<view class="contents">
			<view class="left">
				<image src="/static/home/logo.png"></image>
				<text>杭州市红十字会</text>
			</view>
			<view class="right">
				<image src="/static/home/sao.png" class="sao"></image>
					<image src="/static/home/infos.png" class="infos"></image>
			</view>
		</view>
		<view class="loginvalue">
			<text>指尖</text>上的红十字会
		</view>
		<view class="search">
			<u-input  placeholder="请输入搜索的关键词" v-model="search"
				:type="type" :border="border"
               
				placeholder-style="{
				width: 196rpx;
				padding-left: 10rpx;
				font-size: 22rpx;
				font-family: PingFang;
				font-weight: 400;
				color: #999999;
				border-radius: 10rpx;
				height: 100%;
				line-height:59rpx;
			}"
                height="108rpx"
			></u-input>
		<view class="pos-ri">
			<image class="d1" src="/static/home/search-p.png"></image>
			<image class="d2" src="/static/home/search.png"></image>
		</view>
		</view>
		<Icons ref="sonMethod"></Icons>
		</view>

	</view>
</template>

<script>
	import indexBackgroundImage from "@/static/home/bg1.png"
	import Icons from './icons.vue'
	export default{
		components:{
			Icons
		},
		data(){
			return{
				search:'',//要搜索的内容
				type: 'text',
				border: true,
				indexBackgroundImage: indexBackgroundImage
			}
		},
		methods:{
			refreshMoudles(){
				this.$refs.sonMethod.getRecentMoudles();
			}
		}
	}
</script>

<style scoped lang="scss">
	.custom{
		.logobg{
			width: 100%;
			background-repeat: no-repeat;
			background-size: 100% 60%;
			background-color: linear-gradient(-79.69999999999999deg, #4F6CFE 0%, #4BB1FE 100%);
		}
		.contents{
			display: flex;
			justify-content: space-between;
			padding: 37rpx 27rpx 0 26rpx;
			.left{
				image{
					width: 45rpx;
					height: 45rpx;
					vertical-align: text-bottom;
				}
				text{
					font-size: 32rpx;
					font-family: PingFang;
					font-weight: bold;
					color: #FFFFFF;
					padding-left: 12rpx;
				}
			}
			.right{
				.sao{
					width: 27rpx;
					height: 27rpx;
				}
				.infos{
					width: 23rpx;
					height: 29rpx;
					margin-left: 18rpx;
				}
			}
		}
		.loginvalue{
			padding: 40rpx 0 0 102rpx;
			font-size: 50rpx;
			font-family: FZZDHJW;
			font-weight: 700;
			color: #fff;
			text{
				color: #FFFD30;
			}
		}
    .search{
      display: flex;
      justify-content: space-between;
      height: auto;
      position: relative;
      padding-left: 102rpx;
      margin-top: 45rpx;
      .u-input--border{
		border:0;
        padding: 0;
		background: #FFFFFF;
		opacity: 0.8;
		border-radius: 15rpx;
      }
      /deep/.u-input{
        width: 549rpx;
        .u-input__input{
          height: 59rpx;
        }
      }
      .pos-ri{
        display: flex;
        justify-content: right;
        height: 59rpx;
        position: relative;
        right:85rpx;
        .d1{
          width: 85rpx;
          height: 100%;
		  border-bottom-right-radius: 15rpx;
		  border-top-right-radius: 15rpx;
        }
        .d2{
          width: 29rpx;
          height: 29rpx;
          position: absolute;
          left: 50%;
          top:50%;
          transform: translate(-50%,-50%);
        }
      }

    }
	}
</style>
